package com.clock.domain.vo;

import com.clock.domain.entity.Comment;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;
import java.util.Map;


@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel("帖子详情")
public class DiscussPostDetailVO {


    @ApiModelProperty("帖子id")
    private Long postId;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("帖子题目")
    private String title;

    @ApiModelProperty("帖子内容")
    private String content;

    @ApiModelProperty("模块")
    private List<String> modules;

    @ApiModelProperty("标签")
    private List<String> tags;

    @ApiModelProperty("0-普通;1-置顶")
    private Integer type;

    @ApiModelProperty("0-正常;1-精华;2-拉黑")
    private Integer status;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty("评论数")
    private Integer commentCount;

    @ApiModelProperty("评论列表")
    private PageInfo<Comment> comments;





}
